package tk.kikt.ext

import com.alibaba.fastjson.JSON

fun Any.toJsonString(): String {
    return JSON.toJSONString(this) + "\n"
}

fun Any.toJson(): String {
    return toJsonString()
}